<nz-modal [(nzVisible)]="isVisible" nzTitle="{{title}}" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()">

  <form nz-form [formGroup]="formModel">

    <nz-form-item>
      <nz-form-label [nzSpan]="6" nzRequired nzFor="name">角色名称</nz-form-label>
      <nz-form-control [nzSpan]="14" nzErrorTip="请输入角色名称！">
        <input nz-input name="name" type="text" id="name" formControlName="name" placeholder="请输入角色名称">
      </nz-form-control>
    </nz-form-item>

    <nz-form-item *ngIf="roles=='1'">
      <nz-form-label [nzSpan]="6" nzFor="agencyId">角色类型</nz-form-label>
      <nz-form-control [nzSpan]="14">
        <nz-radio-group id="agencyId" formControlName="agencyId">
          <label nz-radio [nzValue]="0">公共角色</label>
          <label nz-radio [nzValue]="1">私有角色</label>
        </nz-radio-group>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item>
      <nz-form-label [nzSpan]="6" nzFor="sort">排序</nz-form-label>
      <nz-form-control [nzSpan]="14">
        <input nz-input name="sort" type="number" id="sort" formControlName="sort">
      </nz-form-control>
    </nz-form-item>

    <nz-form-item>
      <nz-form-label [nzSpan]="6" nzFor="desc">描述</nz-form-label>
      <nz-form-control [nzSpan]="14">
        <textarea nz-input placeholder="" type="text" formControlName="desc" rows="5"></textarea>
      </nz-form-control>
    </nz-form-item>

  </form>

</nz-modal>
